package com.tengyun.middleplatform.trade.etl.service.impl;

import com.tengyun.middleplatform.trade.etl.bo.OrdersPayBO;
import com.tengyun.middleplatform.trade.etl.mapper.order.OrdersMapper;
import com.tengyun.middleplatform.trade.etl.service.IOrdersService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: likailun
 * @Description:
 * @Date: create in 2022/2/23 5:19 下午
 */
@Service
public class OrdersServiceImpl implements IOrdersService {

    @Resource
    private OrdersMapper ordersMapper;

    @Override
    public List<OrdersPayBO> queryOrderPay(LocalDateTime start, LocalDateTime end, int offset, int size) {
        return ordersMapper.queryOrderPay(start, end, offset, size);
    }

    @Override
    public Integer queryOrderPayCount(LocalDateTime start, LocalDateTime end) {
        return ordersMapper.queryOrderPayCount(start,end);
    }

}
